Skip to content

fix: move utils module into mcp_acp package for PyPI distribution#38

Merged
jeremyeder merged 1 commit intoambient-code:mainfrom
jeremyeder:fix/packaging-utils-module
Mar 6, 2026
Merged

fix: move utils module into mcp_acp package for PyPI distribution#38
jeremyeder merged 1 commit intoambient-code:mainfrom
jeremyeder:fix/packaging-utils-module

Conversation

@jeremyeder
Copy link
Copy Markdown
Contributor

Summary

  • Move utils/ from repo root into src/mcp_acp/utils/ so it gets included in the PyPI wheel
  • Update imports in server.py, client.py, settings.py from from utils.pylogger to from mcp_acp.utils.pylogger

Problem

v0.2.2 on PyPI is broken — pip install mcp-acp && mcp-acp crashes with:

ModuleNotFoundError: No module named 'utils'

The utils/pylogger.py module lives at the repo root, outside src/mcp_acp/. Since pyproject.toml only includes mcp_acp* from src/, the utils package is excluded from the built wheel. It only worked from the dev checkout because sys.path.insert added the repo root.

Test plan

  • uv build produces wheel with mcp_acp/utils/__init__.py and mcp_acp/utils/pylogger.py
  • uv tool install from built wheel succeeds
  • mcp-acp starts without import errors (stdio server blocks as expected)

🤖 Generated with Claude Code

The utils/pylogger module was at the repo root, outside the src/mcp_acp/
package. setuptools only includes mcp_acp* from src/, so the utils module
was missing from the PyPI wheel, causing ImportError on install.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jeremyeder jeremyeder force-pushed the fix/packaging-utils-module branch from c1055b6 to 1164b6e Compare March 6, 2026 02:29
@jeremyeder jeremyeder merged commit adc3fb0 into ambient-code:main Mar 6, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant